package com.ruoyi.userInfo.controller;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.userInfo.service.IaeRegionsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Author: Z.H.Z
 * Date: 2025/2/6 15:00
 */
@RestController
@RequestMapping("/regions")
public class RegionsController {

    @Autowired
    private IaeRegionsService iaeRegionsService;

    @GetMapping("/listDto")
    public AjaxResult listDto(Integer parentId) {
        return iaeRegionsService.listDto();
    }

}
